import { BASE_API } from "../config";


export function getFullFileUrl(relativePath: string): string {
  if (!relativePath) return '';
//   const baseUrl = 'http://192.168.1.220:9010/files';
  const baseUrl = `${BASE_API}/files`;
  return `${baseUrl}/${relativePath.replace(/^\/+/, '')}`; // 防止重复斜杠
}